package com.lds.employment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lds.employment.mapper.EmploymentStudentMapper;
import com.lds.employment.domain.EmploymentStudent;
import com.lds.employment.service.IEmploymentStudentService;

/**
 * 就业学生Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
@Service
public class EmploymentStudentServiceImpl implements IEmploymentStudentService 
{
    @Autowired
    private EmploymentStudentMapper employmentStudentMapper;

    /**
     * 查询就业学生
     * 
     * @param id 就业学生主键
     * @return 就业学生
     */
    @Override
    public EmploymentStudent selectEmploymentStudentById(Long id)
    {
        return employmentStudentMapper.selectEmploymentStudentById(id);
    }

    /**
     * 查询就业学生列表
     * 
     * @param employmentStudent 就业学生
     * @return 就业学生
     */
    @Override
    public List<EmploymentStudent> selectEmploymentStudentList(EmploymentStudent employmentStudent)
    {
        return employmentStudentMapper.selectEmploymentStudentList(employmentStudent);
    }

    /**
     * 新增就业学生
     * 
     * @param employmentStudent 就业学生
     * @return 结果
     */
    @Override
    public int insertEmploymentStudent(EmploymentStudent employmentStudent)
    {
        return employmentStudentMapper.insertEmploymentStudent(employmentStudent);
    }

    /**
     * 修改就业学生
     * 
     * @param employmentStudent 就业学生
     * @return 结果
     */
    @Override
    public int updateEmploymentStudent(EmploymentStudent employmentStudent)
    {
        return employmentStudentMapper.updateEmploymentStudent(employmentStudent);
    }

    /**
     * 批量删除就业学生
     * 
     * @param ids 需要删除的就业学生主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentStudentByIds(Long[] ids)
    {
        return employmentStudentMapper.deleteEmploymentStudentByIds(ids);
    }

    /**
     * 删除就业学生信息
     * 
     * @param id 就业学生主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentStudentById(Long id)
    {
        return employmentStudentMapper.deleteEmploymentStudentById(id);
    }
}
